
        /* --- ESTILOS GLOBAIS --- */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        /* --- BOTÃO DE ABRIR FLUTUANTE --- */
        .chat-open-wrapper {
            position: fixed;
            bottom: 70px;
            right: 5px;
            z-index: 1001;
        }

        .open-chat-button-img {
            display: block; 
            width: 100px;
            height: 100px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 6px 12px rgba(0,0,0,0.3); /* Sombra mais destacada */
            border: none; /* Remove a borda azul */
            object-fit: cover;
            background-color: #2e7b9c; /* Cor de fundo para o caso de a imagem não carregar */
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .open-chat-button-img:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0,0,0,0.4);
        }

        /* --- CONTAINER PRINCIPAL DO CHAT --- */
        .chat-container {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 320px; /* Pouco mais largo */
            height: 440px; /* Pouco mais alto */
            background-color: white;
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
            border-radius: 12px; /* Cantos mais arredondados */
            overflow: hidden;
            flex-direction: column;
            z-index: 1000;
        }

        /* --- CABEÇALHO DO CHAT --- */
        .chat-header {
            background-color: #2e7b9c; /* Cor primária */
            color: white;
            padding: 15px; /* Mais preenchimento */
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .chat-header-info {
            display: flex;
            align-items: center;
        }

        .chat-header h4 {
            margin: 0;
            font-size: 1.1em;
            font-weight: bold;
        }
        
        .chat-header p {
            margin: 0;
            font-size: 0.85em;
            opacity: 0.8;
        }

        .agent-photo {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
            border: 2px solid white;
            object-fit: cover;
        }
        
        .close-chat-button {
            background: none;
            border: none;
            color: white;
            font-size: 1.4em; /* Ícone 'X' maior */
            cursor: pointer;
            padding: 0 5px;
        }

        /* --- CORPO E MENSAGENS --- */
        .chat-body {
            padding: 10px;
            flex-grow: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            background-color: #f0f2f5; /* Fundo mais suave */
        }

        .message {
            max-width: 85%; /* Um pouco maior */
            padding: 10px 14px; /* Mais preenchimento */
            border-radius: 18px; /* Mais arredondado */
            margin-bottom: 8px;
            line-height: 1.4;
            word-wrap: break-word;
            font-size: 0.95em;
        }

        .message p {
            margin: 0;
        }

        .agent-message {
            background-color: white; /* Balão branco para agente */
            align-self: flex-start;
            border-bottom-left-radius: 3px; /* Pequeno detalhe de ponta */
            box-shadow: 0 1px 1px rgba(0,0,0,0.05);
        }

        .user-message {
            background-color: #2e7b9c; /* Cor primária para usuário */
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 3px; /* Pequeno detalhe de ponta */
        }

        /* --- ESTILOS PARA OS BOTÕES DE AÇÃO (Quick Replies) --- */
        .quick-replies-container {
            display: flex;
            flex-direction: column;
            margin-top: 5px;
            gap: 8px; /* Espaçamento entre os botões */
        }

        .quick-reply-button {
            background-color: #e9ecef; /* Fundo cinza suave */
            color: #333;
            border: none;
            border-radius: 20px; /* Formato de pílula */
            padding: 10px 15px;
            text-align: left;
            font-size: 0.9em;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.1s;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 500;
        }

        .quick-reply-button:hover {
            background-color: #dee2e6;
        }

        .quick-reply-button::after {
            content: "❯"; /* Símbolo de seta para indicar ação */
            margin-left: 10px;
            font-weight: bold;
            opacity: 0.6;
        }

        /* --- ENTRADA DE TEXTO --- */
        .chat-input {
            display: flex;
            padding: 10px;
            border-top: 1px solid #ccc;
            background-color: white;
            align-items: center;
        }

        .chat-input input {
            flex-grow: 1;
            padding: 10px;
            border: 1px solid #dee2e6; /* Borda mais sutil */
            border-radius: 20px; /* Arredondado como o botão de envio */
            margin-right: 5px;
            font-size: 0.9em;
            outline: none;
        }

        .chat-input button {
            background-color: #2e7b9c; /* Botão de Envio Verde */
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 0.9em;
            font-weight: bold;
            transition: background-color 0.3s;
        }

        .chat-input button:hover {
            background-color: #1e7e34;
        }
